﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/TemplateAdmin.Master" AutoEventWireup="true" CodeBehind="accountadmin.aspx.cs" Inherits="ProjectSem3.Admin.WebForm3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<link href="css/layout.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
                        <div class="message message-success" runat="server" id="mesage_success" visible="false" style="height:40px; margin:0 0 0 50px;">
	                    <p style="font-size:14px; color:Red;"> Delete Successful </p>
                        <asp:LinkButton OnClick="LinkButton1_Click" ID="LinkButton1" runat="server" title="Close this message" class="close icon icon_close tooltip"></asp:LinkButton>
                        </div>
                        <div class="message message-error" runat= "server" id="message_error" visible="false" style="height:40px; margin:0 0 0 50px;">
                        <p style="font-size:14px; color:Red;">You can not delete your account</p>
	                    <asp:LinkButton OnClick="LinkButton1_Click" ID="LinkButton2" runat="server" title="Close this message" class="close icon icon_close tooltip"></asp:LinkButton>
                        </div>
						<table cellspacing="0" class="listTable" id="postList">
						<thead> 
						<tr align="center">
						    <th style="height:30px; color:#fff; font-size:14px; text-align:center;">Username</th> 
						    <th style="height:30px; color:#fff; font-size:14px; text-align:center;">Pemision</th> 
							<th class="last" style="height:30px; color:#fff; font-size:14px; text-align:center;">Delete</th> 
						</tr> 
						</thead> 
						<tbody>
                        <asp:Repeater ID="Repeater1" runat="server">
                            <ItemTemplate>
                            <tr class="even">
                            <td style="height:25px; font-size:14px; text-align:center;"><%# Eval("username") %></td>
                            <td style="height:25px; font-size:14px; text-align:center;" ><%# Convert.ToInt32(Eval("pemision")).Equals(1)? "Master" : "Admin" %></td>
                            <td style="height:25px; font-size:14px; text-align:center;">
                                <asp:HiddenField ID="HiddenFieldUsername" runat="server" Value='<%# Eval("username") %>' />
                                <asp:LinkButton ID="LinkButtonDelete" runat="server" OnClientClick="return confirm('Are you sure?')" OnClick="LinkButtonXoa_Click">Delete</asp:LinkButton>  </td>
                            </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                        </tbody>
						</table>
                        <div>
                            <asp:Button ID="ButtonAdd" runat="server" Text="Insert" 
                                style="margin:20px 0 0 460px;" onclick="ButtonAdd_Click" />
                        </div>
						
</asp:Content>
